import { _decorator, Component, Node } from 'cc';
import { GameApp } from './game/GameApp';
import { NetMgr } from './framework/Net/NetMgr';
import EventMgr from './framework/EventMgr';
import NetEventMgr from './game/NetEventMgr';
const { ccclass, property } = _decorator;

@ccclass('GameLaunch')
export class GameLanch extends Component {
    onLoad() {
        // 初始化框架模块: 网络模型，资源管理模块，协议模块，...
        this.node.addComponent(EventMgr);
        this.node.addComponent(NetMgr);
        // end

        // 游戏模块
        this.node.addComponent(NetEventMgr);
        this.node.addComponent(GameApp);
        // end 
    }

    start() {

        GameApp.Instance.gameStart();
    }
        
    
}


